package cn.learn.domain;

/**
 * 账户信息,实现springSecurity的用户接口
 * 所属表：sys_account
 *
 * @author huangyezhan
 * @version 1.0
 * @date 2020年2月18日11:38:23
 */

public class SysAccount{
    private static final long serialVersionUID = 56468815562123L;

    /**
     * 主键
     */
    private Long   id;
    /**
     * 公司id
     */
    private Long   companyId;
    /**
     * 部门id
     */
    private Long   deptId;
    /**
     * 账号名
     */
    private String accountName;
    /**
     * 登录模式：1账号密码登录；2手机验证登录；3第三方授权登录
     */
    private String loginType;
    /**
     * 真实姓名
     */
    private String realName;
    /**
     * 性别
     */
    private String gender;
    /**
     * 头像路径
     */
    private String headImageUrl;
    /**
     * 用户型：客户会员等级；员工类型（1正式、2兼职）
     */
    private String userType;
    /**
     * 员工信息id
     */
    private Long   userId;




    public String getUsername() {
        return this.accountName;
    }


    @Override
    public String toString() {
        return "SysAccount{" +
                "id=" + id +
                ", companyId=" + companyId +
                ", deptId=" + deptId +
                ", accountName='" + accountName + '\'' +
                ", loginType='" + loginType + '\'' +
                ", realName='" + realName + '\'' +
                ", gender='" + gender + '\'' +
                ", headImageUrl='" + headImageUrl + '\'' +
                ", userType='" + userType + '\'' +
                ", userId=" + userId +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }


    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getHeadImageUrl() {
        return headImageUrl;
    }

    public void setHeadImageUrl(String headImageUrl) {
        this.headImageUrl = headImageUrl;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

}
